/**
 * @Copyright:Copyright (c) 2007 - 2023
 * 
 */
package com.tengtong.commons.collections;

import java.util.Collection;

/**
 * 容器工具类
 *
 * @author lin_jinming
 * @since: v1.0
 */
public class CollectionUtils {

    /**
     * 容器是否为空，如果是就返回 true，否则返回 false
     *
     * @param <T>
     * @param c
     * @return
     */
    public final static <T> boolean isEmpty(Collection<T> c) {
        return c == null || c.isEmpty();
    }
    
    /**
     * 非空则返回 true
     *
     * @param <T>
     * @param c
     * @return
     */
    public final static <T> boolean notEmpty(Collection<T> c) {
        return !isEmpty(c);
    }
    
}
